package com.example.zhaoping.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_user")
public class User {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private String avatar;
    private String username;//用户名
    @JsonIgnore
    private String password;//密码
    private String name;
    private String gender;
    private String age;
    private String birthday;
    private String phone;
//    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("createTime")
    private Date createTime;
    private String school;
    private String email;
    private String specialty;
    private String education;
}
